package com.xhq.tools.rsa;

import java.util.Base64;

/**
 * @author huiny
 * @since 2021/8/14 22:31
 */
public class Base64Helper {
    public static String encode(byte[] bytes) {
        return Base64.getEncoder().encodeToString(bytes);
    }

    public static byte[] decode(String str) {
        return Base64.getDecoder().decode(str);
    }
}
